<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
</head>
<body>
<button class="btn">删除</button>
</body>
<script>
  $('.btn').click(function(){
    $.ajax({
      url: 'http://localhost:8088/api/delete/1',
      type: 'DELETE',
      success: function(res){
        console.log(res);
      }
    })
  })
</script>
</html>
